package ar.com.mun.searchs;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import ar.com.mun.services.ExpedienteService;

import com.angel.architecture.flex.locator.ObjectLocator;
import com.angel.common.keyValue.KeyValueResult;
import com.angel.webapp.search.SearchStrategyCommand;

/**
 * @author William
 * @since 03/February/2009
 */
public class ExpedienteSearchStrategy implements SearchStrategyCommand {

	public List<Object> findObjectToExport(KeyValueResult keyValueResult) {
		ExpedienteService expedienteService = ObjectLocator.getBeanByName("expedienteService");
		Collection<Object> os = expedienteService.findAll();
		List<Object> collection = new ArrayList<Object>();
		for(Object o: os){
			collection.add(o);
		}
		return collection;
	}

	

}